package org.lanqiao.controller;

import org.lanqiao.api.WebSocketServer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import java.io.IOException;

/**
 * @author andenj
 * @describe
 * @data
 */
@RestController
@ResponseBody
public class WebSocketController {

    @Autowired
    WebSocketServer server;

    @RequestMapping("/login")
    public String login(String username) throws IOException {
        //用来测试用户是否成功进入
        System.out.println("用户名："+username+"成功进入Controller层");
        return username;
    }

}
